package com.chuangshi.core.vote.player.service;

import com.chuangshi.core.mongodb.MongodbService;
import com.chuangshi.core.kit.Result;
import com.chuangshi.core.vote.player.controller.admin.request.PlayerAdminV1ListRequest;
import com.chuangshi.core.vote.player.controller.mobile.request.PlayerMobileV1ListRequest;
import com.chuangshi.core.vote.player.controller.mobile.response.PlayerMobileV1FindResponse;
import com.chuangshi.core.vote.player.entity.Player;

import java.util.List;

/**
 * 人员信息业务接口
 *
 * @author ggliming
 * @date 2019-02-21
 */
public interface PlayerService extends MongodbService<Player> {

    /**
     * 人员信息列表
     *
     * @param request 请求参数
     * @return Result 返回参数
     */
    Result listForAdmin(PlayerAdminV1ListRequest request);

    List<Player> listByPositionId(PlayerMobileV1ListRequest request);

    PlayerMobileV1FindResponse voting(String playerId, String memberId, String appId);

    List<Player> listAll();
}